package Testing.Client;

import java.rmi.Naming;


public class RMI_Client
{
	public static void main(String[] args)
	{
		int x = (int) (Math.random() * 100);
		int y = (int) (Math.random() * 100);
		try
		{
			Adder a = (Adder) Naming.lookup("rmi://localhost:10001/AdderImpl");
			System.out.println("sum of " + x + " and " + y + " = "
					+ a.add(x, y));
		}
		catch (Exception re)
		{
			System.out.println(re);
		}
	}
}
